package com.yytek.common.client.net.model;




import com.yytek.common.client.net.model.base.BaseMqttRequest;

import java.util.Map;

/**
 * 设备上报事件
 */
public class EventPost extends BaseMqttRequest {
    private Map<String, EventValueInfo> params;

    String eventIdentifier = "event.post.${identifier}";

    /**
     * 设置调用事件名称
     * @param method
     */
    @Override
    public void setMethod(String method) {
        //替换方法名称
        method = eventIdentifier.replace("${identifier}",method);
        super.setMethod(method);
    }

    public Map<String, EventValueInfo> getParams() {
        return params;
    }

    public void setParams(Map<String, EventValueInfo> params) {
        this.params = params;
    }
}
